package cn.frank.framework.king.conf.init.listener;

import org.springframework.boot.context.event.ApplicationFailedEvent;
import org.springframework.context.ApplicationListener;

/**
 * @description: TODO
 * @author: renjiangyang
 * @date 2025/7/31 11:24:53
 * @since 1.8
 */
// ✅ 启动失败处理
public class ApplicationFailedListener implements ApplicationListener<ApplicationFailedEvent> {

    @Override
    public void onApplicationEvent(ApplicationFailedEvent event) {
        System.out.println("❌ [X] Spring Boot 启动失败: " + event.getException().getMessage());
    }
}